package com.ef.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * ClassType和 upper Limit 的组合。<br/>
 * @author CYG create:2010-1-1 上午10:59:18
 */
@Entity
public class ClassUnit implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
 
	@ManyToOne(fetch = FetchType.LAZY)
	private ClassType classType;

	private Integer updateLimitTimes;

 	public ClassType getClassType() {
		return classType;
	}

	public void setClassType(ClassType classType) {
		this.classType = classType;
	}

	public Integer getUpdateLimitTimes() {
		return updateLimitTimes;
	}

	public void setUpdateLimitTimes(Integer updateLimitTimes) {
		this.updateLimitTimes = updateLimitTimes;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
 }
